package com.liser.southernstar.net.api;


import com.liser.southernstar.BuildConfig;
import com.liser.southernstar.collection.model.dto.GoodsFamilyDTO;
import com.liser.southernstar.net.model.ApiRestful;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by: var_rain.
 * Created date: 2018/10/21.
 * Description: 服务器接口映射
 */
public interface ApiService {

    /* 服务器地址, 在 build.gradle 中配置 */
    String BASE_URL = BuildConfig.APP_SERVER_ADDRESS;

    /* 超时 */
    int TIME_OUT = 15;

    @GET("/paym/act/8888/catering.goods/getDataByBiz")
    Observable<ApiRestful<List<GoodsFamilyDTO>>> getDataByBiz(@Query("id") String id);
}
